package com.xplay.xpocker.dvo;

import com.xplay.xpocker.entity.GameRuMahjong;
import com.xplay.xpocker.entity.GameRuMahjongLogs;
import com.xplay.xpocker.entity.GameRuRoom;
import com.xplay.xpocker.room.mahjong.dto.MahjongRoomInfo;
import com.xplay.xpocker.room.mahjong.dto.MahjongRoomRule;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface MahjongInfoStruct {

    MahjongInfoStruct INSTANCE = Mappers.getMapper(MahjongInfoStruct.class);

    public MahjongRoomInfo toDTO(GameRuMahjong mahjongInfo);

    public AbstractRoom<MahjongRoomRule, MahjongRoomInfo, GameRuMahjongLogs> roomToMahjongRoom(GameRuRoom room);

}
